/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A java class that draws the charts
    @author Loc Phan
    @version 1.01 2008-11-11
*/

import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;

public class ChartComponent extends JComponent
{
   public void paint(Graphics g)
   {
      Graphics2D g2 = (Graphics2D) g;

      Chart pic = new Chart();
      pic.add(20);
      pic.draw(g2);
      pic.add(50);
      pic.draw(g2);
      pic.add(60);
      pic.draw(g2);
      pic.add(50);
      pic.draw(g2);
      pic.add(30);
      pic.draw(g2);
      pic.add(80);
      pic.draw(g2);
      pic.add(100);
      pic.draw(g2);
      
   }
}